container: Don't randomly call gtk_widget_set_allocation()
authorBenjamin Otte <otte@redhat.com>
Mon, 28 Sep 2015 21:31:04 +0000 (23:31 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 28 Oct 2015 18:44:27 +0000 (19:44 +0100)
gtk_widget_size_allocate() does that already.

gtk/gtkcontainer.c

index f469659a25d8602051e49f483eb8475fa84c368c..1cacdb636fa3a51d3775b9ef5adc16f82bf58e0d 100644 (file)
@@ -2209,7 +2209,6 @@ gtk_container_real_check_resize (GtkContainer *container)
       if (GTK_IS_RESIZE_CONTAINER (container))
         {
           gtk_widget_size_allocate (widget, &allocation);
-          gtk_widget_set_allocation (widget, &allocation);
         }
       else
         gtk_widget_queue_resize (widget);
@@ -2218,7 +2217,6 @@ gtk_container_real_check_resize (GtkContainer *container)
   else
     {
       gtk_widget_size_allocate (widget, &allocation);
-      gtk_widget_set_allocation (widget, &allocation);
     }
 }
 
@@ -2252,7 +2250,6 @@ gtk_container_resize_children (GtkContainer *container)
   _gtk_widget_get_allocation (widget, &allocation);
 
   gtk_widget_size_allocate (widget, &allocation);
-  gtk_widget_set_allocation (widget, &allocation);
 }
 
 static void